package com.finance.report.service;


import com.finance.framework.lang.Page;
import com.finance.framework.lang.PageResultBO;
import com.finance.report.bean.pojo.LogisticsDataView;
import com.finance.report.bean.pojo.ManSalary;
import com.finance.report.bean.pojo.ManSalaryDetail;

import java.util.List;
import java.util.Map;

public interface IManSalaryService {

    PageResultBO<ManSalary> listByPage(Page page);
    PageResultBO<Map<String,Object>> listSalaryByPage(Page page);
    PageResultBO<LogisticsDataView> getOrdersDetails(Page page);
    ManSalary getByUserCode(String userCode,String salaryMonth);
    ManSalary getByUserCodeForLock(String userCode,String salaryMonth);
    List<ManSalaryDetail> getSalaryDetails(String userCode, String salaryMonth);
    void addManSalaryWithDetail(ManSalary manSalary) throws Exception;
    void addManSalaryDetail(ManSalaryDetail manSalaryDetail);
    void updateManSalary(ManSalary manSalary) throws Exception;
    void updateManSalary(ManSalary manSalary,String wayBillNum) throws Exception;
    boolean updateManSalaryDetail(ManSalaryDetail manSalaryDetail);
    boolean updateManSalaryDetail(ManSalaryDetail manSalaryDetail,String wayBillNum);
    ManSalaryDetail getDetailBySupplierCode(ManSalary manSalary, String supplierCode);
    ManSalary getByUserCodeRandom(String userCode,String salaryMonth);
}
